const Order = function (cartGoodsList, price, count, address) {
  var that = {};
  that.cartGoodsList = cartGoodsList;
  that.price = price;
  that.count = count;
  that.address = address;
  that.exFee = that.price >= 80 ? (0).toFixed(2) : (10).toFixed(2);
  that.totalPrice = (Number(that.price) + Number(that.exFee)).toFixed(2);
  return that;
}
module.exports = Order;
